package cn.rkylin.oms.warehouseDocking.service;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.rkylin.oms.warehouseDocking.dao.IQmInventoryQueryDAO;
import cn.rkylin.oms.warehouseDocking.domain.QmInventoryQuery;

/**
 * QmInventoryQuery服务层
 * 
 * @author jipengcheng
 * @created 2017年10月18日
 */
@Service("qmInventoryQueryService")
public class QmInventoryQueryService {

    @Autowired
    IQmInventoryQueryDAO iQmInventoryQueryDAO;

    /**
     * 查询ID
     */
    public String selectByPrimaryKeyQmInventoryQueryId(Map<String, Object> reqMap) throws Exception {
        String result = iQmInventoryQueryDAO.selectByPrimaryKeyQmInventoryQueryId(reqMap);
        return result;
    }

    /**
     * 插入
     */
    public int insertSelectiveQmInventoryQuery(QmInventoryQuery qmInventoryQuery) throws Exception {
        int iRtn = iQmInventoryQueryDAO.insertSelectiveQmInventoryQuery(qmInventoryQuery);
        return iRtn;
    }

    /**
     * 更新
     */
    public int updateByPrimaryKeySelectiveQmInventoryQuery(QmInventoryQuery qmInventoryQuery) throws Exception {
        int iRtn = iQmInventoryQueryDAO.updateByPrimaryKeySelectiveQmInventoryQuery(qmInventoryQuery);
        return iRtn;
    }
}
